package com.sgb.merchant.view.adapter;

import android.content.Context;

import androidx.databinding.DataBindingUtil;
import androidx.databinding.ViewDataBinding;

import com.sgb.link.entity.merchant.InvestmentProjectEntity;
import com.sgb.merchant.BR;
import com.sgb.merchant.R;
import com.swgk.core.recyclerview.adapter.BaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;

import java.util.List;

/**
 * Time:2021/6/18
 * Author:黄淋
 * Description:
 */
public class InvestmentProjectAdapter extends BaseRecycleAdapter<InvestmentProjectEntity> {

    public InvestmentProjectAdapter(Context context,List<InvestmentProjectEntity> datas) {
        super(context, R.layout.merchant_item_investment_project, datas);
    }

    @Override
    public void convert(ItemViewHolder holder, InvestmentProjectEntity investmentProjectEntity) {
        ViewDataBinding binding = DataBindingUtil.bind(holder.itemView);
        binding.setVariable(BR.viewModel, investmentProjectEntity);


    }
}
